package com.xiangban.yanglaodajie_platform.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiangban.yanglaodajie_platform.entity.DeliveryAddress;
import com.xiangban.yanglaodajie_platform.entity.dto.DeliveryAddressDto;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/4/9 15:06
 */
@Repository
public interface DeliveryAddressMapper extends BaseMapper<DeliveryAddress> {

   Map<String,String> selectCityList(Integer code);

   int saveAddress(DeliveryAddress deliveryAddress);

   List<DeliveryAddressDto> findAddress(DeliveryAddress deliveryAddress);

   int deleteAddress(DeliveryAddress deliveryAddress);

   int reset(DeliveryAddress deliveryAddress);

   DeliveryAddressDto findObject(DeliveryAddress deliveryAddress);
}
